Optimal. Leaf size=157 \[ \frac {(f h-e i)^2 \log (e+f x) (a+b \log (c (e+f x)))}{d f^3}+\frac {2 i (e+f x) (f h-e i) (a+b \log (c (e+f x)))}{d f^3}+\frac {i^2 (e+f x)^2 (a+b \log (c (e+f x)))}{2 d f^3}-\frac {b (-3 e i+4 f h+f i x)^2}{4 d f^3}-\frac {b (f h-e i)^2 \log ^2(e+f x)}{2 d f^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.26, antiderivative size = 133, normalized size of antiderivative = 0.85, number of steps used = 7, number of rules used = 6, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2411, 12, 43, 2334, 14, 2301} \[ \frac {\left (\frac {4 i (e+f x) (f h-e i)}{f^2}+\frac {2 (f h-e i)^2 \log (e+f x)}{f^2}+\frac {i^2 (e+f x)^2}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}-\frac {b (-3 e i+4 f h+f i x)^2}{4 d f^3}-\frac {b (f h-e i)^2 \log ^2(e+f x)}{2 d f^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 43
Rule 2301
Rule 2334
Rule 2411
Rubi steps
\begin {align*} \int \frac {(h+177 x)^2 (a+b \log (c (e+f x)))}{d e+d f x} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (\frac {-177 e+f h}{f}+\frac {177 x}{f}\right )^2 (a+b \log (c x))}{d x} \, dx,x,e+f x\right )}{f}\\ &=\frac {\operatorname {Subst}\left (\int \frac {\left (\frac {-177 e+f h}{f}+\frac {177 x}{f}\right )^2 (a+b \log (c x))}{x} \, dx,x,e+f x\right )}{d f}\\ &=-\frac {\left (\frac {708 (177 e-f h) (e+f x)}{f^2}-\frac {31329 (e+f x)^2}{f^2}-\frac {2 (177 e-f h)^2 \log (e+f x)}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}-\frac {b \operatorname {Subst}\left (\int \frac {-177 (708 e-4 f h-177 x) x+2 (-177 e+f h)^2 \log (x)}{2 f^2 x} \, dx,x,e+f x\right )}{d f}\\ &=-\frac {\left (\frac {708 (177 e-f h) (e+f x)}{f^2}-\frac {31329 (e+f x)^2}{f^2}-\frac {2 (177 e-f h)^2 \log (e+f x)}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}-\frac {b \operatorname {Subst}\left (\int \frac {-177 (708 e-4 f h-177 x) x+2 (-177 e+f h)^2 \log (x)}{x} \, dx,x,e+f x\right )}{2 d f^3}\\ &=-\frac {\left (\frac {708 (177 e-f h) (e+f x)}{f^2}-\frac {31329 (e+f x)^2}{f^2}-\frac {2 (177 e-f h)^2 \log (e+f x)}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}-\frac {b \operatorname {Subst}\left (\int \left (-177 (708 e-4 f h-177 x)+\frac {2 (177 e-f h)^2 \log (x)}{x}\right ) \, dx,x,e+f x\right )}{2 d f^3}\\ &=-\frac {b (531 e-4 f h-177 f x)^2}{4 d f^3}-\frac {\left (\frac {708 (177 e-f h) (e+f x)}{f^2}-\frac {31329 (e+f x)^2}{f^2}-\frac {2 (177 e-f h)^2 \log (e+f x)}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}-\frac {\left (b (177 e-f h)^2\right ) \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,e+f x\right )}{d f^3}\\ &=-\frac {b (531 e-4 f h-177 f x)^2}{4 d f^3}-\frac {b (177 e-f h)^2 \log ^2(e+f x)}{2 d f^3}-\frac {\left (\frac {708 (177 e-f h) (e+f x)}{f^2}-\frac {31329 (e+f x)^2}{f^2}-\frac {2 (177 e-f h)^2 \log (e+f x)}{f^2}\right ) (a+b \log (c (e+f x)))}{2 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 214, normalized size = 1.36 \[ \frac {2 a^2 e^2 i^2-4 a^2 e f h i+2 a^2 f^2 h^2+2 b \log (c (e+f x)) \left (2 a (f h-e i)^2+b i \left (-2 e^2 i+e f (4 h-2 i x)+f^2 x (4 h+i x)\right )\right )-4 a b e f i^2 x+8 a b f^2 h i x+2 a b f^2 i^2 x^2+2 b^2 (f h-e i)^2 \log ^2(c (e+f x))-2 b^2 e^2 i^2 \log (e+f x)+6 b^2 e f i^2 x-8 b^2 f^2 h i x-b^2 f^2 i^2 x^2}{4 b d f^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 170, normalized size = 1.08 \[ \frac {{\left (2 \, a - b\right )} f^{2} i^{2} x^{2} + 2 \, {\left (b f^{2} h^{2} - 2 \, b e f h i + b e^{2} i^{2}\right )} \log \left (c f x + c e\right )^{2} + 2 \, {\left (4 \, {\left (a - b\right )} f^{2} h i - {\left (2 \, a - 3 \, b\right )} e f i^{2}\right )} x + 2 \, {\left (b f^{2} i^{2} x^{2} + 2 \, a f^{2} h^{2} - 4 \, {\left (a - b\right )} e f h i + {\left (2 \, a - 3 \, b\right )} e^{2} i^{2} + 2 \, {\left (2 \, b f^{2} h i - b e f i^{2}\right )} x\right )} \log \left (c f x + c e\right )}{4 \, d f^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 241, normalized size = 1.54 \[ \frac {8 \, b f^{2} h i x \log \left (c f x + c e\right ) + 2 \, b f^{2} h^{2} \log \left (c f x + c e\right )^{2} - 4 \, b f h i e \log \left (c f x + c e\right )^{2} + 8 \, a f^{2} h i x - 8 \, b f^{2} h i x - 2 \, b f^{2} x^{2} \log \left (c f x + c e\right ) + 4 \, a f^{2} h^{2} \log \left (f x + e\right ) - 8 \, a f h i e \log \left (f x + e\right ) + 8 \, b f h i e \log \left (f x + e\right ) - 2 \, a f^{2} x^{2} + b f^{2} x^{2} + 4 \, b f x e \log \left (c f x + c e\right ) + 4 \, a f x e - 6 \, b f x e - 2 \, b e^{2} \log \left (c f x + c e\right )^{2} - 4 \, a e^{2} \log \left (f x + e\right ) + 6 \, b e^{2} \log \left (f x + e\right )}{4 \, d f^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.05, size = 387, normalized size = 2.46 \[ \frac {b \,i^{2} x^{2} \ln \left (c f x +c e \right )}{2 d f}+\frac {a \,i^{2} x^{2}}{2 d f}+\frac {b \,e^{2} i^{2} \ln \left (c f x +c e \right )^{2}}{2 d \,f^{3}}-\frac {b e h i \ln \left (c f x +c e \right )^{2}}{d \,f^{2}}-\frac {b e \,i^{2} x \ln \left (c f x +c e \right )}{d \,f^{2}}+\frac {b \,h^{2} \ln \left (c f x +c e \right )^{2}}{2 d f}+\frac {2 b h i x \ln \left (c f x +c e \right )}{d f}-\frac {b \,i^{2} x^{2}}{4 d f}+\frac {a \,e^{2} i^{2} \ln \left (c f x +c e \right )}{d \,f^{3}}-\frac {2 a e h i \ln \left (c f x +c e \right )}{d \,f^{2}}-\frac {a e \,i^{2} x}{d \,f^{2}}+\frac {a \,h^{2} \ln \left (c f x +c e \right )}{d f}+\frac {2 a h i x}{d f}-\frac {3 b \,e^{2} i^{2} \ln \left (c f x +c e \right )}{2 d \,f^{3}}+\frac {2 b e h i \ln \left (c f x +c e \right )}{d \,f^{2}}+\frac {3 b e \,i^{2} x}{2 d \,f^{2}}-\frac {2 b h i x}{d f}-\frac {3 a \,e^{2} i^{2}}{2 d \,f^{3}}+\frac {2 a e h i}{d \,f^{2}}+\frac {7 b \,e^{2} i^{2}}{4 d \,f^{3}}-\frac {2 b e h i}{d \,f^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.53, size = 351, normalized size = 2.24 \[ 2 \, b h i {\left (\frac {x}{d f} - \frac {e \log \left (f x + e\right )}{d f^{2}}\right )} \log \left (c f x + c e\right ) + \frac {1}{2} \, b i^{2} {\left (\frac {2 \, e^{2} \log \left (f x + e\right )}{d f^{3}} + \frac {f x^{2} - 2 \, e x}{d f^{2}}\right )} \log \left (c f x + c e\right ) - \frac {1}{2} \, b h^{2} {\left (\frac {2 \, \log \left (c f x + c e\right ) \log \left (d f x + d e\right )}{d f} - \frac {\log \left (f x + e\right )^{2} + 2 \, \log \left (f x + e\right ) \log \relax (c)}{d f}\right )} + 2 \, a h i {\left (\frac {x}{d f} - \frac {e \log \left (f x + e\right )}{d f^{2}}\right )} + \frac {1}{2} \, a i^{2} {\left (\frac {2 \, e^{2} \log \left (f x + e\right )}{d f^{3}} + \frac {f x^{2} - 2 \, e x}{d f^{2}}\right )} + \frac {b h^{2} \log \left (c f x + c e\right ) \log \left (d f x + d e\right )}{d f} + \frac {a h^{2} \log \left (d f x + d e\right )}{d f} + \frac {{\left (e \log \left (f x + e\right )^{2} - 2 \, f x + 2 \, e \log \left (f x + e\right )\right )} b h i}{d f^{2}} - \frac {{\left (f^{2} x^{2} + 2 \, e^{2} \log \left (f x + e\right )^{2} - 6 \, e f x + 6 \, e^{2} \log \left (f x + e\right )\right )} b i^{2}}{4 \, d f^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.35, size = 208, normalized size = 1.32 \[ x\,\left (\frac {i\,\left (2\,a\,f\,h+b\,e\,i-2\,b\,f\,h\right )}{d\,f^2}-\frac {e\,i^2\,\left (2\,a-b\right )}{2\,d\,f^2}\right )+f\,\ln \left (c\,\left (e+f\,x\right )\right )\,\left (\frac {b\,i^2\,x^2}{2\,d\,f^2}-\frac {b\,i\,x\,\left (e\,i-2\,f\,h\right )}{d\,f^3}\right )+\frac {\ln \left (e+f\,x\right )\,\left (2\,a\,e^2\,i^2+2\,a\,f^2\,h^2-3\,b\,e^2\,i^2-4\,a\,e\,f\,h\,i+4\,b\,e\,f\,h\,i\right )}{2\,d\,f^3}+\frac {b\,{\ln \left (c\,\left (e+f\,x\right )\right )}^2\,\left (e^2\,i^2-2\,e\,f\,h\,i+f^2\,h^2\right )}{2\,d\,f^3}+\frac {i^2\,x^2\,\left (2\,a-b\right )}{4\,d\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.66, size = 226, normalized size = 1.44 \[ x^{2} \left (\frac {a i^{2}}{2 d f} - \frac {b i^{2}}{4 d f}\right ) + x \left (- \frac {a e i^{2}}{d f^{2}} + \frac {2 a h i}{d f} + \frac {3 b e i^{2}}{2 d f^{2}} - \frac {2 b h i}{d f}\right ) + \frac {\left (- 2 b e i^{2} x + 4 b f h i x + b f i^{2} x^{2}\right ) \log {\left (c \left (e + f x\right ) \right )}}{2 d f^{2}} + \frac {\left (b e^{2} i^{2} - 2 b e f h i + b f^{2} h^{2}\right ) \log {\left (c \left (e + f x\right ) \right )}^{2}}{2 d f^{3}} + \frac {\left (2 a e^{2} i^{2} - 4 a e f h i + 2 a f^{2} h^{2} - 3 b e^{2} i^{2} + 4 b e f h i\right ) \log {\left (e + f x \right )}}{2 d f^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________